package com.boco.blch.analysiser.compliance.HW.manager;

import com.boco.blch.analysiser.compliance.ComplianceResolved;

/**
 * kafka定期更新版本或厂商漏洞补丁安全基线要求项
 * @author admin
 *
 */
public class BOCO_Kafka_VersionManage_CycleUpdate implements ComplianceResolved {

	private final static String version="0.11.0";
	@Override
	public int realEchoResolved(String echoResult) {
		int result = FAILED;
		if(echoResult != null && echoResult.length() > 0){
			if(echoResult.contains(version)){
				result = SUCCESS;
			}
//			String[] echoResult1=echoResult.split("-");
//			if(echoResult1 != null && echoResult1.length > 2){
//				String value=echoResult1[2].trim();
//				if(value.trim().equals(version.trim())){
//					result = SUCCESS;
//				}
//			}
		}
		return result;

	}

}
